/*
 * Project: Daycare Web Application
 * Package: com.madetoordersoftware.daycare.business
 * File:    EmailMgr
 * Created: Jan 17, 2014
 */
/**
 * Copyright (c) 2010 Made 2 Order Software, LLC
 *
 * All rights reserved. No part of this software may be reproduced, stored in a retrieval system, or
 * transmitted in any form or by any means, without the prior written permission of Made 2 Order Software.
 *
 * You may not distribute the URL or redistribute the files to third parties. You may transfer the files onto
 * a single storage device so long as you can prove ownership of the software. You may not reverse engineer,
 * decompile, or disassemble the software or media files. You may not modify or translate the software or
 * media, or distribute copies of the software or media without the written consent of Made 2 Order Software,
 * LLC.
 */
package com.made2ordersoftware.daycare.business;

import javax.ejb.Stateless;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Class used to manage email actions.
 *
 * @author David Canning <dcannin@gmail.com>
 * @version 1.0.0
 */
@Stateless
public class EmailMgr {

    private static final Logger LOG = LoggerFactory.getLogger(EmailMgr.class);

    /**
     * Send an email to the address of the Day Care specified in the Daycare singleton object.
     *
     * @param to      The email being sent to (Daycare object email).
     * @param from    The email of the person writing this message.
     * @param subject The subject of the email being sent.
     * @param content The message of the email.
     *
     * @throws Exception
     */
    public void sendEmail(String to, String from, String subject, String content) throws Exception {
        LOG.info("Start send email.");

        LOG.info("Email sent successfully");
    }

}
